#include <bits/stdc++.h>
using namespace std;

int x, y;
int main() {
    cin >> x >> y;
    if (x >= 10 || y >= 20)
        cout << "1";
    else
        cout << "0";
        
    return 0;
}